EMTool
Interface EMInterface

All Known Implementing Classes:
EMDtd, EMText

public interface EMInterface


Field Summary
static java.lang.String DEVICEDOESNOTEXIST
           
static java.lang.String FAILURE
           
static java.lang.String NODEVICESFOUND
           
static java.lang.String NOUSERSFOUND
           
static java.lang.String SUCCESS
           
static java.lang.String USERDOESNOTEXIST
           
 
Method Summary
 void init(java.lang.String serverIP, java.lang.String serverUser, java.lang.String serverPassword)
           
 java.lang.String login(java.lang.String deviceName, java.lang.String username, java.lang.String deviceProfile, java.lang.String duration)
          Login the user into the device with the specificed profile
 java.lang.String logout(java.lang.String deviceName)
          Logout any user that is currently logged into the device
 java.lang.String queryDevice(java.lang.String username)
          Get the device name if any of the device the user is currently logged in to
 java.lang.String queryUser(java.lang.String deviceName)
          Get the username if any of the user currently logged in to the specified device
 

Field Detail

DEVICEDOESNOTEXIST

static final java.lang.String DEVICEDOESNOTEXIST
See Also:
Constant Field Values

NODEVICESFOUND

static final java.lang.String NODEVICESFOUND
See Also:
Constant Field Values

USERDOESNOTEXIST

static final java.lang.String USERDOESNOTEXIST
See Also:
Constant Field Values

NOUSERSFOUND

static final java.lang.String NOUSERSFOUND
See Also:
Constant Field Values

FAILURE

static final java.lang.String FAILURE
See Also:
Constant Field Values

SUCCESS

static final java.lang.String SUCCESS
See Also:
Constant Field Values
Method Detail

init

void init(java.lang.String serverIP,
          java.lang.String serverUser,
          java.lang.String serverPassword)
Parameters:
serverIP - This is the IP address of the server running the EM Services
serverUser - Username of a user with that can execute EM command via the EMServices interface This user must either be the user assigned to the device on which the operation is performed, or a user with the "Standard EM Autheticatio Proxy Rights" role. This parameter is used as the AppID in the AppInfo object
serverPassword - Password for the server USer. This parameter is used as the AppCertificate in the AppInfo object

login

java.lang.String login(java.lang.String deviceName,
                       java.lang.String username,
                       java.lang.String deviceProfile,
                       java.lang.String duration)
Login the user into the device with the specificed profile

Parameters:
deviceName - Device name of device to login to
username - User to log in
deviceProfile - Device profile to use
duration - null for infinite or number of minutes to remain logged in
Returns:
Text indicating success or failure of the action

logout

java.lang.String logout(java.lang.String deviceName)
Logout any user that is currently logged into the device

Parameters:
deviceName - Device name of device to logout of
Returns:
Text indicating success or failure of the action

queryDevice

java.lang.String queryDevice(java.lang.String username)
Get the device name if any of the device the user is currently logged in to

Parameters:
username -
Returns:
Devicename currently associated with user or failure text

queryUser

java.lang.String queryUser(java.lang.String deviceName)
Get the username if any of the user currently logged in to the specified device

Parameters:
deviceName -
Returns:
Username currently associated with device or failure text